package com.szrt.day20170420.ch02;

public class ContactPerson implements Person {
	
	private Long phone;
	
	private String sex;
	
	
	private String name;
	
	
	
	
	


	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public ContactPerson(Long phone, String sex) {
		super();
		this.phone = phone;
		this.sex = sex;
	}
	
	


	public ContactPerson(Long phone, String sex, String name) {
		super();
		this.phone = phone;
		this.sex = sex;
		this.name = name;
	}


	public Long getPhone() {
		return phone;
	}


	public void setPhone(Long phone) {
		this.phone = phone;
	}


	public String getSex() {
		return sex;
	}


	public void setSex(String sex) {
		this.sex = sex;
	}


	@Override
	public String toString() {
		return "ContactPerson [phone=" + phone + ", sex=" + sex + ", name=" + name + "]";
	}


	
	
	

}
